package Form::NokContact;
use strict;
use warnings;
use base qw(My::Form);
use Form::Field::Gender;
use Form::Field::CountryPopupMenu;
use Form::Field::CountrySelectBox;
use Form::Field::OcfCentrePopupMenu;
use Form::Field::DateField;
use Form::Field::YearRange;

sub build_form {
	my ($self) = shift;
	my $phone_number_field =
		Form::Field::PhoneNumberField->new( 'name'   => 'phone_number',
											'label'  => 'Phone Number',
											required => 1
		);
	$self->add_fields(
				 'name' => { 'type' => 'text', 'size' => 25, 'label' => 'Name', 'required' => 1 },
				 'family_name' =>
					 { 'type' => 'text', 'size' => 25, 'label' => 'Family Name', 'required' => 1 },
				 'relationship' =>
					 { 'type' => 'text', 'size' => 16, 'label' => 'Relationship', 'required' => 1 },
				 'phone_number' => $phone_number_field,
	);
} ## end sub build_form
1;
